﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HerGoS.Viaticos.Entities;
using HerGoS.DAO;
using HerGoS.Interfaces;
using System.Data;
using HerGoS.Viaticos.Exceptions;

namespace HerGoS.Viaticos.Engine
{
    public class GestorReporte
    {

        public static List<Tramo> Consultar(int idliquidacion)
        {
            try
            {
                Liquidacion liq = new Liquidacion { OID = idliquidacion };

                return GestorTramo.Consultar(liq);

            }
            catch (Exception ex)
            {
                throw new TramoGetException(ex);
            }

        }



        public static List<Liquidacion> ConsultarLiquidacion(int idliquidacion)
        {
            List<Liquidacion> Lista = new List<Liquidacion>();
            Lista.Add(GestorLiquidacion.Obtener(idliquidacion));

            return Lista;
        }

      
    }
}